//
//  DIYChoiceTimeButton.m
//  UcarTest
//
//  Created by 陈曦 on 16/1/19.
//  Copyright © 2016年 chenxi. All rights reserved.
//

#import "DIYChoiceTimeButton.h"
#import "Define.h"

@implementation DIYChoiceTimeButton

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        //背景色
        self.backgroundColor = [UIColor whiteColor];
        
        //图片
        self.timeChoiceImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 18, 15, 15)];
        self.timeChoiceImageView.image = [UIImage imageNamed:@"iconfont-shijian-gray"];
        [self addSubview:self.timeChoiceImageView];
        
        //标题
        self.useCarTimeLabel = [[UILabel alloc] initWithFrame:CGRectMake(35, 20, 55, 14)];
        self.useCarTimeLabel.textAlignment = NSTextAlignmentLeft;
        self.useCarTimeLabel.textColor = labelTextColor;
        self.useCarTimeLabel.font = [UIFont systemFontOfSize:12];
        [self addSubview:self.useCarTimeLabel];
        
        //时间显示
        self.timeShowLabel = [[UILabel alloc] initWithFrame:CGRectMake(90, 20, kScreenWidthTen * 2, 14)];
        self.timeShowLabel.textAlignment = NSTextAlignmentCenter;
        self.timeShowLabel.text = @"-- / -- / --";
        self.timeShowLabel.textColor = labelTextColor;
        self.timeShowLabel.font = [UIFont systemFontOfSize:12];
        [self addSubview:self.timeShowLabel];

        
    }
    return self;
}
@end
